import request from '@/utils/request'

// 查询合同投诉记录列表
export function listContractlogs(query) {
  return request({
    url: '/supply/contractlogs/list',
    method: 'get',
    params: query
  })
}

// 查询合同投诉记录详细
export function getContractlogs(recordId) {
  return request({
    url: '/supply/contractlogs/' + recordId,
    method: 'get'
  })
}

// 新增合同投诉记录
export function addContractlogs(data) {
  return request({
    url: '/supply/contractlogs',
    method: 'post',
    data: data
  })
}

// 修改合同投诉记录
export function updateContractlogs(data) {
  return request({
    url: '/supply/contractlogs',
    method: 'put',
    data: data
  })
}

// 删除合同投诉记录
export function delContractlogs(recordId) {
  return request({
    url: '/supply/contractlogs/' + recordId,
    method: 'delete'
  })
}
